package MyRunnnable.way1;


public class Test {
    public static void main(String[] args) {

        Runnable myRunnable =new MyRunnableImpl();
        Thread thread =new Thread( myRunnable);
        thread.start();
        for (int i = 0; i <10 ; i++) {

            System.out.println(Thread.currentThread().getName()+"->"+i);

        }



    }
}
